package cc.mcggdd.leah.boot.stock.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 账单表单对象
 *
 * @author 
 * @since 2025-02-10 14:57
 */
@Getter
@Setter
@Schema(description = "账单表单对象")
public class StockBillForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "负债ID")
    @NotNull(message = "负债ID不能为空")
    private Long debtId;

    @Schema(description = "账单还款日")
    @NotNull(message = "账单还款日不能为空")
    private LocalDate billDate;

    @Schema(description = "账单还款金额")
    @NotNull(message = "账单还款金额不能为空")
    private BigDecimal billAmount;

    @Schema(description = "账单状态")
    @NotBlank(message = "账单状态不能为空")
    @Size(max=5, message="账单状态长度不能超过5个字符")
    private String status;


}
